package com.haiyi.software.chat;

import com.haiyi.software.app.R;

import kankan.wheel.widget.adapters.AbstractWheelTextAdapter;
import android.content.Context;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;

public class WheelUbodyAdapter extends AbstractWheelTextAdapter {

	String[] bodys = { "猴", "熊", "狐", "狼", "狸" };

	public WheelUbodyAdapter(Context context) {
		super(context, R.layout.item_body, NO_RESOURCE);
		setItemTextResource(R.id.textView_item_ubody);
		// this.setTextColor(0xFFFFFFFF);
		this.setTextSize(26);

	}

	@Override
	public int getItemsCount() {
		// TODO 自动生成的方法存根
		return bodys.length;
	}

	@Override
	protected CharSequence getItemText(int index) {

		return bodys[index];

	}

	@Override
	public View getItem(int index, View convertView, ViewGroup parent) {
		// TODO 自动生成的方法存根

		View view = super.getItem(index, convertView, parent);
		Log.i("getITEM", view.toString());
		return view;
	}
}
